﻿<%@ Page Language="C#" AutoEventWireup="true" Codebehind="CourseOutLineModify.aspx.cs"
    Inherits="LabMS.Web.CoursePlan.CourseOutLineModify" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>课程大纲信息修改</title>
    <link type="text/css" rel="stylesheet" href="../style/screen.css" />
    <link href="../../css/jquery.wysiwyg.css" rel="stylesheet" type="text/css" />
    <!--[if lte IE 6]>
    <link type="text/css" rel="stylesheet" href="../style/ie6.css" />
    <![endif]-->
    <!--[if lte IE 7]>
    <link type="text/css" rel="stylesheet" href="../style/ie7.css" />
    <![endif]-->
    
    <script src="../js/Common.js" type="text/javascript"></script>

    <script type="text/javascript" src="../js/jQuery/jquery-1.3.1.js"></script>

    <script type="text/javascript">
        function deleteAttach()
        {
            document.getElementById("a1").style.display="none";
            document.getElementById("AttachmentName").style.display="none";
            document.getElementById("fp_Attachment").style.display="";
            document.getElementById("IsDelCB").checked=true;
        }
        function back()
        {
            alert(document.getElementById("CouOutLinID").value);
            RedirectURL(window,'./CourseOutLinePreview.aspx?ID='+document.getElementById("CouOutLinID").value);
        }
        
        
        function refreshParent()
        {
            window.opener.location.href= window.opener.location.href;
            
        }
    </script>

</head>
<body class="mainBody">
    <form id="form1" runat="server">
         <div class="main">
            <div id="pageInfo" class="clearfix">
                <div class="title">
                    <label>
                        <a href="ProPlanList.aspx">专业培养计划</a></label>&gt;修改专业培养计划
                </div>
            </div>
        </div>
        <div  class="main">
            <div>
                <asp:Label ID="ERRLbl" runat="server" Visible="false"></asp:Label>
                <asp:Button ID="ModifyBtn" CssClass="button" runat="server" Text="保存" OnClick="Modify_Click" />
                <input id="concelbtn" runat="server" type="button" class="button" value="返回" onclick="window.location.href='CourseOutLinePreview.aspx?ID='+getElementById('CouOutLinID').value;" />
            </div>
            <div class="main">
                <table>
                    <tr>
                        <td>
                            <label class="itemTitle">
                                加入人：</label></td>
                        <td>
                            <asp:TextBox ID="tb_Submitter" runat="server" /></td>
                    </tr>
                    <tr>
                        <td>
                            <label class="itemTitle">
                                加入时间：</label></td>
                        <td>
                            <asp:TextBox ID="tb_Time" runat="server" /></td>
                    </tr>
                    <tr>
                        <td>
                            <label class="itemTitle">
                                课程名称：</label></td>
                        <td>
                            <asp:TextBox ID="tb_CourseName" runat="server" /></td>
                    </tr>
                    <tr>
                        <td>
                            <label class="itemTitle">
                                课程编号：</label></td>
                        <td>
                            <asp:TextBox ID="tb_CourseCode" runat="server" /></td>
                    </tr>
                    <tr>
                        <td>
                            <label class="itemTitle">
                                关键字：</label><span style="color: Red">*</span></td>
                        <td>
                            <asp:TextBox ID="tb_KeyWord" runat="server" /></td>
                    </tr>
                    <tr>
                        <td>
                            <label class="itemTitle">
                                内容：</label><span style="color: Red">*</span></td>
                        <td>
                            <asp:TextBox ID="tb_Content" runat="server" TextMode="MultiLine" Rows="5" Width="350" Height="120" /></td>
                    </tr>
                    <tr>
                        <td>
                            <label class="itemTitle">
                                上传文件：</label></td>
                        <td>
                            <a id="a1" runat="server" onclick="deleteAttach()">[删除]</a>&nbsp;<asp:Label ID="AttachmentName"
                                runat="server"></asp:Label><asp:FileUpload ID="fp_Attachment" runat="server" Style="display: none;" /></td>
                    </tr>
                </table>
                <asp:TextBox ID="tb_CourseID" runat="server" Style="visibility: hidden" />
            </div>
        </div>
        <asp:CheckBox ID="IsDelCB" runat="server" Checked="false" Style="display: none;" />
        <asp:HiddenField ID="CouOutLinID" runat="server" Value="0" />
        <asp:HiddenField ID="AttachID" runat="server" Value="0" />

        <script type="text/javascript" src="../js/jQuery/jquery.validate.js"></script>

        <script type="text/javascript">
        $(document).ready(function(){
            $("#form1").validate({
                rules: {
                    tb_KeyWord:"required",
                    tb_Content:"required"
                },
                messages: {
                    tb_KeyWord:"请输入关键字",
                    tb_Content:"请输入大纲内容"
                }
            });
        });
        </script>

    </form>
</body>
</html>
